import { http } from "@/utils/http";

type ResultTable = {
  total?: number;
  data?: Array<any>;
};

//排放计划信息的展示 列表
export const emissionqueryListPage = (data?: object) => {
  return http.request<ResultTable>("post", `/operation/api/v1/waste/emission/queryListPage`, {
    data
  });
};
//新增排放计划
export const emissionaddEmissionPlan = (data?: object) => {
  return http.request<ResultTable>("post", `/operation/api/v1/waste/emission/addEmissionPlan`, {
    data
  });
};
//删除排放计划
export const emissiondeleteEmissionData = (data?: object) => {
  return http.request<ResultTable>("post", `/operation/api/v1/waste/emission/deleteEmissionData`, {
    data
  });
};
//修改排放计划
export const emissionupdateEmissionData = (data?: object) => {
  return http.request<ResultTable>("post", `/operation/api/v1/waste/emission/updateEmissionData`, {
    data
  });
};
//排放计划详情的展示
export const emissionqueryEmissionDetailData = (data?: object) => {
  return http.request<ResultTable>("post", `/operation/api/v1/waste/emission/queryEmissionDetailData`, {
    data
  });
};
//获取一般废弃物的名称
export const emissiongetGeneralData = (data?: object) => {
  return http.request<ResultTable>("post", `/operation/api/v1/waste/emission/getGeneralData`, {
    data
  });
};
//获取危险废弃物的名称
export const emissiongetHazardData = (data?: object) => {
  return http.request<ResultTable>("post", `/operation/api/v1/waste/emission/getHazardData`, {
    data
  });
};
